//
//  InviteFromLocalContactsViewCell.swift
//  iModern
//
//  Created by Ralf on 5/25/15.
//  Copyright (c) 2015 com.starlooking. All rights reserved.
//

import UIKit

class InviteFromLocalContactsViewCell: TableViewCell
{
    @IBOutlet weak var NameLabel: UILabel!

    @IBOutlet weak var TelLabel: UILabel!
    override func awakeFromNib()
    {
        super.awakeFromNib()
        // Initialization code
    }

    func setData(parameters: NSDictionary)
    {
        let name: AnyObject = parameters["fullName"]! as! String
        self.NameLabel.text = name as? String
        let phone: NSArray = parameters["Phone"]! as! NSArray
        if phone.count > 0
        {
            self.TelLabel.text = phone[0] as? String
        }
        else
        {
            self.TelLabel.text = ""
        }
    }

    override func setSelected(selected: Bool, animated: Bool)
    {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
